package com.lx.dao;


import com.lx.entity.Product;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface ProductDao {
    List<Product> selectAll();

    Product selectById(Integer id);

    int addProduct(Product product);
    int updateProduct(Product product);

    int delProduct(Integer id);
    int updateProductNumber(@Param("id") Integer id, @Param("number") Integer number);
}
